<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="./node_modules/vue/dist/vue.js"></script>
</head>
<body>
    <!-- 要设置页面中元素的内容：数据绑定
    要获取页面红元素的内容：数据绑定 -->

    <!-- 插值表达式中只能放js中的表达式 -->
    <div id="app">
            <input type="text" v-model="num1">+
            <input type="text" v-model="num2">=
            {{+num1 + +num2}}
    </div>

    <script>
        
        var vm = new Vue({
            el: "#app",
            data: {
                num1: 0,
                num2: 0
            }
        })
    
    </script>
</body>
</html>